/*
 * > /*
>  * INSANE - Interactive Structural Analysis Environment
>  *
>  * Copyright (C) 2003-2004
>  * Universidade Federal de Minas Gerais
>  * Escola de Engenharia
>  * Departamento de Engenharia de Estruturas
>  *
>  * Author's email :     insane@dees.ufmg.br
>  * Author's Website :   http://www.dees.ufmg.br/insane
>  *
>  * This program is free software; you can redistribute it and/or
>  * modify it under the terms of the GNU General Public License
>  * as published by the Free Software Foundation; either version 2
>  * of the License, or any later version.
>  *
>  * This program is distributed in the hope that it will be useful,
>  * but WITHOUT ANY WARRANTY; without even the implied warranty of
>  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>  * GNU General Public License for more details.
>  *
>  * You should have received a copy of the GNU General Public License
>  * along with this program; if not, write to the Free Software
>  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-
> 1307, USA.
 *
 */

package br.ufmg.dees.insane.ui.rich.postp.postp_view;

import java.io.Serializable;
import java.util.LinkedList;

import br.ufmg.dees.insane.commons.view.ViewState;

/**
 * A class representing the state of the model.
 * @author	Penna, Samuel & Pitangueira, Roque
 * @since   april 2005
 */
public class ScaleColorsViewState extends ViewState implements Serializable {

    /**   */
	private static final long serialVersionUID = 1L;

    private boolean isScaleContoursOnOff = false;
    
    private boolean isBackgroundOnOff = true;
    
    private boolean isBoundaryOnOff = true;
    
    private boolean isScaleLocation = false;
    
    private boolean isInfoLocation = false;
    
    private boolean isTransparent = false;
    
    private String palette = "BWR32Colors";
    
    private String scalePosition = "Bottom";
    
    private String infoPosition = "BR4";
    
    private int scaleLocationX = 1;
    
    private int scaleLocationY = 1;
    
    private int infoLocationX = 1;
    
    private int infoLocationY = 1;
    
    /**
     * The class constructor 
     */
    public ScaleColorsViewState() {   
    	
    	
    }

	public LinkedList getColorsPalette() {
        LinkedList colorsPalette = new LinkedList();
		if(palette.equals("BWR32Colors")){
			if(isTransparent){
				colorsPalette = ColorsPalette.colorsPaletteBWR32Trans();
			}else{
				colorsPalette = ColorsPalette.colorsPaletteBWR32();
			}
		}
		if(palette.equals("Full32Colors")){
			if(isTransparent){
				colorsPalette = ColorsPalette.colorsPaletteFull32Trans();
			}else{
				colorsPalette = ColorsPalette.colorsPaletteFull32();
			}
		}
		if(palette.equals("Gray32Colors")){
			if(isTransparent){
				colorsPalette = ColorsPalette.colorsPaletteGrayScale32Trans();
			}else{
				colorsPalette = ColorsPalette.colorsPaletteGrayScale32();
			}
		}
		if(palette.equals("BWR8Colors")){
			if(isTransparent){
				colorsPalette = ColorsPalette.colorsPaletteBWR8Trans();
			}else{
				colorsPalette = ColorsPalette.colorsPaletteBWR8();
			}
		}
		if(palette.equals("Full8Colors")){
			if(isTransparent){
				colorsPalette = ColorsPalette.colorsPaletteFull8Trans();
			}else{
				colorsPalette = ColorsPalette.colorsPaletteFull8();
			}
		}
		if(palette.equals("Gray8Colors")){
			if(isTransparent){
				colorsPalette = ColorsPalette.colorsPaletteGrayScale8Trans();
			}else{
				colorsPalette = ColorsPalette.colorsPaletteGrayScale8();
			}
		}
		return colorsPalette;
	}

	

    public String getPalette() {
        return palette;
    }

    public void setPalette(String palette) {
        this.palette = palette;
    }

	public boolean isScaleContoursOnOff() {
		return isScaleContoursOnOff;
	}

	public void setScaleContoursOnOff(boolean isScaleContoursOnOff) {
		this.isScaleContoursOnOff = isScaleContoursOnOff;
	}

	public String getScalePosition() {
		return scalePosition;
	}

	public void setScalePosition(String scalePosition) {
		this.scalePosition = scalePosition;
	}

	public String getInfoPosition() {
		return infoPosition;
	}

	public void setInfoPosition(String infoPosition) {
		this.infoPosition = infoPosition;
	}

	public int getScaleLocationX() {
		return scaleLocationX;
	}

	public void setScaleLocationX(int scaleLocationX) {
		this.scaleLocationX = scaleLocationX;
	}

	public int getInfoLocationX() {
		return infoLocationX;
	}

	public void setInfoLocationX(int infoLocationX) {
		this.infoLocationX = infoLocationX;
	}

	public int getInfoLocationY() {
		return infoLocationY;
	}

	public void setInfoLocationY(int infoLocationY) {
		this.infoLocationY = infoLocationY;
	}

	public int getScaleLocationY() {
		return scaleLocationY;
	}

	public void setScaleLocationY(int scaleLocationY) {
		this.scaleLocationY = scaleLocationY;
	}

	public boolean isBackgroundOnOff() {
		return isBackgroundOnOff;
	}

	public void setBackgroundOnOff(boolean isBackground) {
		this.isBackgroundOnOff = isBackground;
	}

	public boolean isBoundaryOnOff() {
		return isBoundaryOnOff;
	}

	public void setBoundaryOnOff(boolean isBoundaryOnOff) {
		this.isBoundaryOnOff = isBoundaryOnOff;
	}

	public boolean isInfoLocation() {
		return isInfoLocation;
	}

	public void setInfoLocation(boolean isInfoLocation) {
		this.isInfoLocation = isInfoLocation;
	}

	public boolean isScaleLocation() {
		return isScaleLocation;
	}

	public void setScaleLocation(boolean isScaleLocation) {
		this.isScaleLocation = isScaleLocation;
	}

	public boolean isTransparent() {
		return isTransparent;
	}

	public void setTransparent(boolean isTransparent) {
		this.isTransparent = isTransparent;
	}

	
    
//**********************************************************************************************
}//end of this class